package com.lg.rpc.sample.server;

import com.lg.rpc.sample.api.HelloService;
import com.lg.rpc.sample.api.Person;
import com.lg.rpc.server.RpcService;

/**
 * @author by Mr. Li 2020/5/21 16:47
 */
@RpcService(HelloService.class)
public class HelloServerImpl implements HelloService {
    @Override
    public String hello(String name) {
        return "Hello! " + name;
    }

    @Override
    public String hello(Person person) {
        return "Hello! " + person.getFirstName() + " " + person.getLastName();
    }
}
